<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="__MODES__/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link href="__MODES__/assets/css/codemirror.css" rel="stylesheet">
		<link rel="stylesheet" href="__MODES__/assets/css/ace.min.css" />
		<link rel="stylesheet" href="__MODES__/assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="__MODES__/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="__MODES__/assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="__MODES__/assets/js/jquery.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
		<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='__MODES__/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='__MODES__/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif]-->
		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='__MODES__/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
		</script>
		<script src="__MODES__/assets/js/bootstrap.min.js"></script>
		<script src="__MODES__/assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script type="text/javascript" src="__JS__/H-ui.js"></script>
		<script type="text/javascript" src="__JS__/H-ui.admin.js"></script>
		
		<script  src="__PLUGINS__/layer/layer.js"></script>
		<script src="__MODES__/assets/laydate/laydate.js" type="text/javascript"></script>
	    <script  src="__PLUGINS__/common.js"></script>
		<title>用户列表</title>
	</head>

	<body>
		<div class="page-content clearfix">
			<div id="Member_Ratings">
				<div class="d_Confirm_Order_style">
					<div class="search_style">
						<form action="{:Url('Admin/Agent/withdetail')}" method="get">
						<ul class="search_content clearfix">
                          	<li>
                              <label class="l_f">订单号：</label>
                              <input name="profit_form_no" id="profit_form_no" type="text" class="text_add" style="width:100px;"  value="{$getdata['profit_form_no']}" placeholder="订单号" />  
                            </li>
							<li>
                              <label class="l_f">申请状态：</label>
                              <select name="profit_type" id='profit_type'>
                                <option value="">全部</option>
                                <option value="1" {if isset($getdata['profit_type'])}{$getdata['profit_type']=='1'? 'selected':''}{/if}>还款</option>
                                <option value="2" {if isset($getdata['profit_type'])}{$getdata['profit_type']=='2'? 'selected':''}{/if}>收款</option>
                                <option value="3" {if isset($getdata['profit_type'])}{$getdata['profit_type']=='3'? 'selected':''}{/if}>激活</option>
                                <option value="4" {if isset($getdata['profit_type'])}{$getdata['profit_type']=='4'? 'selected':''}{/if}>升级</option>
                              </select>     
                            </li>
                            <input type="hidden" name="id" value="{$getdata['id']}" />
                          	<li>
                             <label class="l_f">分润时间：</label>
                                <input type="text" name="starttime" value="{if isset($getdata['starttime'])}{$getdata['starttime']}{/if}" class="layui-input" id="starttime" placeholder="开始日期" lay-key="92">
                              	-
                                <input type="text" name="endtime" value="{if isset($getdata['endtime'])}{$getdata['endtime']}{/if}" style='margin-left:0px' class="layui-input" id="endtime" placeholder="结束日期" lay-key="93">
                            </li>
                          
							<li style="width:90px;"><input type="submit" id="" class="btn_search" value="查询"></li>
							<li style="width:90px;"><button onclick="secash({$getdata['id']})" type="button" id="searchAout" class="btn_search"><i class="icon-search"></i>全部</button></li>
						</ul>
					</div>
					<!---->
					<div class="table_menu_list">
						<table class="table table-striped table-bordered table-hover" >
							<thead>
								<tr>
	                                <th>编号</th>
	                                <th>姓名</th>
	                                <th>代理</th>
	                                <th>单号</th>
	                                <th>金额(元)</th>
	                                <th>分润(元)</th>
	                                <th>用户费率(%)</th>
	                                <th>类型</th>
	                                <th>时间</th>
                                </tr>
							</thead>
							<tbody>
							{volist name='list' id='vo' }
                              <tr>
                                <td>{$vo.profit_id}</td>
                                <td>{$vo.profit_uid}</td>
                                <td>{$vo.profit_agent_id}</td>
                                <td>{$vo.profit_form_no}</td>
                                <td>{$vo.profit_amount}</td>
                                <td>{$vo.profit_money}</td>
                                <td>{$vo.profit_user_rate}</td>
                                <td>{$vo.profit_type}</td>
                                <td>{$vo.profit_time}</td>
                              </tr>
							{/volist}
							</tbody>
						</table>
						<!-- {/volist} -->
					</div>
					<div>
		                {$list->render()|raw}
		            </div>
				</div>
			</div>
		</div>
	   
	</body>

</html>
<script>
		laydate({
			elem: '#starttime',
			event: 'focus'
		});
		laydate({
			elem: '#endtime',
			event: 'focus'
		});

		function secash(id){
			window.location.href = "{:Url('Admin/Agent/withdetail')}?id="+id;
		}
		
</script>